package com.ymt.bpm.engine.listener;

import org.activiti.engine.delegate.event.ActivitiEvent;
import org.activiti.engine.delegate.event.ActivitiEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Johnny on 2016/12/23.
 */
public class SequenceFlowListener implements ActivitiEventListener {

    private static SequenceFlowListener instance;
    /**
     * Logger
     */
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    public static SequenceFlowListener getInstance() {
        if (instance==null) {
            instance = new SequenceFlowListener();
        }
        return instance;
    }

    @Override
    public void onEvent(ActivitiEvent activitiEvent) {

    }

    @Override
    public boolean isFailOnException() {
        return true;
    }
}
